<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.js"></script>
</head>
<body>
    <input type="search" id="search" placeholder="请输入">
    <script>
        let search = document.getElementById("search")
        search.onkeyup= _.debounce(()=>{
            console.log("11111111");
        },500)

    </script>
</body>
</html>